package org.liquidByte.trafficMustang.androidApp;

import java.text.DecimalFormat;

import android.widget.TextView;

public final class Bindings {
	private static final DecimalFormat currencyFormat = new DecimalFormat("R$ 0.00");
	
	public static void currencySet(TextView txv, double value) {
		txv.setText(currencyFormat.format(value).replace('.', ','));
	}
	public static void percentSet(TextView txv, double percent) {
		int value = (int)(percent*100);
		txv.setText(Integer.toString(value) + "%");
	}
}
